<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="h" uri="/hd-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询客户</title>
<link href="style/main.css" rel="stylesheet" type="text/css"/>
<link  href="style/glowtabs.css" rel="stylesheet" type="text/css" />
</head>

<body class="body_content">
<div id="wrap">
	<div id="main" class="clearfix">

<jsp:include page="../header.jsp"></jsp:include>

<div class="ricoh_content_k">
	<div class="ricoh_title">--- 查询客户信息 --- </div>
	<div class="ricoh_content_in">
   		<div class="find_k">
   			<form action="customer_listCustomer.action" method="post">
	       	  <div class="find_kd">单位名称：
	            <input type="text" name="unitName" id="unitName" value="${unitName}" maxlength="50"/>
	          </div>
	          
	          <div class="find_kd">单位简称：                
	             <input type="text" name="unitForShort" id="unitForShort" value="${unitForShort}"/>
	          </div>
	          
	          <div class="find_kd">区　　域：
	          	 <s:select theme="simple" name="district" list="#{'':'--请选择--','滨湖区':'滨湖区'}" value="district"></s:select>
	          </div>
	          
	          <div class="find_kd">单位性质：
	          	<s:select theme="simple" name="unitKind" list="#{'':'--请选择--','事业单位':'事业单位'}" value="unitKind"></s:select>
	          </div>
	          
	          <p style="padding-top:2px; padding-left:50px;"><input type="submit" name="Submit" value="查询"  class="send_btn"/></p>
	        </form>
        </div>
        
        <div class="find_result">
        <table class="result">
			<caption>查询结果：</caption>
			<thead>
				<tr>
					<th width="18%">单位名称</th>
				    <th width="12%">单位简称</th>
					<th width="25%">地址</th>
					<th width="12%">区域</th>
					<th width="13%">单位性质</th>
					<th width="10%">联系方式</th>
                    <th width="10%">传真</th>
				</tr>
			</thead>	
			<tfoot>
				<tr>
					<th>总共:${customers.totalCount}条记录</th>
					<td colspan="6">
						<h:pages currentPage="%{currentPage}" url="customer_listCustomer.action" totalPage="%{totalPage}" cssClass="pagnation" showPageNumber="3">
						
						</h:pages>
					</td>
				</tr>
			</tfoot>
			<tbody>
				<s:iterator value="customers.data" status="customer">
					<s:if test="(#customer.index)%2 == 1">
						<tr >
							<th>${unitName}</th>
							<td>${unitForShort}</td>
							<td>${address}</td>
							<td>${district}</td>
							<td>${unitKind}</td>
		                    <td>${contactWay}</td>
		                    <td>${fax}</td>
						</tr>
					</s:if>
					<s:else>
						<tr class="odd">
							<th>${unitName}</th>
							<td>${unitForShort}</td>
							<td>${address}</td>
							<td>${district}</td>
							<td>${unitKind}</td>
		                    <td>${contactWay}</td>
		                    <td>${fax}</td>
						</tr>
					</s:else>					
				</s:iterator>
			</tbody>		
		</table>
        </div>
  </div>
</div>

</div>
</div>

<jsp:include page="../footer.jsp"></jsp:include>

</body>
<script type="text/javascript" src="js/ddtabmenu.js"></script>
<script type="text/javascript">
	ddtabmenu.definemenu("ddtabs2", 2)

</script>
</html>
